import request from './request';

export function getFamilyTree(params) {
  return request({ url: '/api/v1/family/tree', method: 'get', params });
}
export function dragMember(data) {
  return request({ url: '/api/v1/family/tree/drag', method: 'post', data });
}
export function batchMove(data) {
  return request({ url: '/api/v1/family/tree/batch-move', method: 'post', data });
}
export function getTimeline(params) {
  return request({ url: '/api/v1/family/timeline', method: 'get', params });
}
export function generateGenerationNames(data) {
  return request({ url: '/api/v1/family/generation-names', method: 'post', data });
}
export function getFamilyTreeWithRelation(params) {
  return request({ url: '/api/v1/family/tree-with-relation', method: 'get', params });
} 